Message window
Функции
create_message_window
void create_message_window(string message)
message_box
funcX
int sfall_func4("message_box", string message, int flags, int color1, int color2)
Creates a dialog box with text and returns the result of pressing the button: 0 - No (Escape), 1 - Yes/Done (Enter). Returns -1 if for some reason the dialog box cannot be created.
message
: the text in the dialog box. Use the\n
control character to move text to a new line (example: “Hello\nWorld!”) optional arguments:flags
: mode flags (seeMSGBOX_*
constants in define_extra.h). Pass -1 to skip setting the flags (default flags areNORMAL
andYESNO
)color1/color2
: the color index in the game palette.color1
sets the text color for the first line, andcolor2
for all subsequent lines of text (default color is 145)